<?php if (!defined('THINK_PATH')) exit();?><!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>上海泛软科技有限公司-后台登陆</title>
<meta name="robots" content="nofollow" />
<meta name=”viewport” content=”width=device-width, initial-scale=1, maximum-scale=1″>
<link href="/Public/Css/admin-style.css" rel="stylesheet" type="text/css" />
<link href="/Public/Css/bootstrap.css" rel="stylesheet" type="text/css" />
<link href="/Public/Css/bootstrap.min.css" rel="stylesheet" type="text/css" />


<script language="javascript" type="text/javascript" src="/Public/Js/jquery.js"></script>
<script language="javascript" type="text/javascript" src="/Public/Js/admin-common.js"></script>
<script language="javascript" type="text/javascript" src="/Public/Js/bootstrap.min.js"></script>
<!--<script language="javascript" type="text/javascript" src="/Public/Js/bootstrap.js"></script> -->
<script language="javascript" type="text/javascript" src="/Public/Js/rock_customer_list.js"></script>
<script language="javascript" type="text/javascript" src="/Public/Js/demo.js"></script>
<script language="javascript" type="text/javascript" src="/Public/Js/blob.js"></script>
<script language="javascript" type="text/javascript" src="/Public/Js/FileSaver.min.js"></script>
<script language="javascript" type="text/javascript" src="/Public/Js/jquery.base64.js"></script>
<script language="javascript" type="text/javascript" src="/Public/Js/jquery-1.10.2.min.js"></script>
<script language="javascript" type="text/javascript" src="/Public/Js/tableExport.js"></script>
<script language="javascript" type="text/javascript" src="/Public/Js/xlsx.core.min.js"></script>
</head>

<body>

 <h4>设备增加</h4>
  <form class="form-horizontal" role="form" style="width:100%;" enctype="multipart/form-data" name="form1" method="post" action="<?php echo U('hospital_image_ediok');?>">
   <div style="width:80%; border: 1px solid #ccc;padding:10px;margin-bottom:30px;margin-left:10%"> 
  <div style="width:60%;margin-left:15%">  
    
   <h4>图片信息:</h4>
 <!--  <div class="form-group">
    <label for="firstname" class="col-sm-2 control-label">省份</label>
      <div class="col-sm-10">
      <select style="width:100%" name="hospital_name" id="province" onchange="choose_hos()">
      <?php if(is_array($hospital_name)): $i = 0; $__LIST__ = $hospital_name;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$hospital_name): $mod = ($i % 2 );++$i;?><option h_id="<?php echo ($hospital_name['h_id']); ?>"><?php echo ($hospital_name["h_name"]); ?></option><?php endforeach; endif; else: echo "" ;endif; ?>
      </select> 
    </div>
    </div>
    <div class="form-group">
    <label for="lastname" class="col-sm-2 control-label">区县</label>
    <div class="col-sm-10">
      <select style="width:100%" name="hospital_name" id="city" onchange="choose_hos()">
      <?php if(is_array($hospital_name)): $i = 0; $__LIST__ = $hospital_name;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$hospital_name): $mod = ($i % 2 );++$i;?><option h_id="<?php echo ($hospital_name['h_id']); ?>"><?php echo ($hospital_name["h_name"]); ?></option><?php endforeach; endif; else: echo "" ;endif; ?>
      </select> 
    </div>
    </div>   -->
   <!--  <div class="form-group">

    <label for="h_id" class="col-sm-2 control-label">医院名称</label>
      <div class="col-sm-10">
      <select style="width:100%" name="h_id" id="h_id" >
        <option h_id="0">请选择</option>
      <?php if(is_array($hospital)): $i = 0; $__LIST__ = $hospital;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$list): $mod = ($i % 2 );++$i;?><option value="<?php echo ($list['h_id']); ?>"><?php echo ($list["h_name"]); ?></option><?php endforeach; endif; else: echo "" ;endif; ?>
      </select> 
    </div>
    </div>
  <div class="form-group">

    <label for="f_id" class="col-sm-2 control-label">大楼名</label>
      <div class="col-sm-10">
      <select style="width:100%" name="f_id" id="f_id"  >
     
      </select> 
    </div>
    </div>
 -->
 <div class="form-group">

    <label for="i_name" class="col-sm-2 control-label">楼层</label>
      <div class="col-sm-10">
      <input type="text" name="i_name" id="i_name" value="<?php echo ($h_img['i_name']); ?>"/>
      <input type="hidden" name="i_id" id="i_id" value="<?php echo ($h_img['i_id']); ?>" /> 
    </div>
    </div>
<!-- 
      <div class="form-group">

    <label for="firstname" class="col-sm-2 control-label">楼层</label>
      <div class="col-sm-10">
      <select style="width:100%" name="i_name" id="i_name" >   
        <option id="1">1楼<option>
        <option id="2">2楼<option>
        <option id="3">3楼<option>
        <option id="4">4楼<option>
        <option id="5">5楼<option>
        <option id="6">6楼<option>    
      </select> 
    </div>
    </div> -->

      <div class="form-group">

    <label class="col-sm-2 control-label" for="img_src">图片</label>
      <div class="col-sm-10">
     
      <input type="text" name="img_src" id="img_src"  /> <a href="javascript:void(0)" id="upload">上传图片</a>
    </div>

     <div class="form-group" style="display:none;">

    <label for="firstname" class="col-sm-2 control-label">备注</label>
      <div class="col-sm-10">
     <textarea type="" name="introduction" id="introduction" style="display:none;"></textarea>
    </div>
    </div>

    

    </div>

     <script language="javascript" type="text/javascript" src="/Public/Plugin/kindeditor/kindeditor.js"></script>
     <script language="javascript" type="text/javascript">
    var editor;
    KindEditor.ready(function(K) {
      editor = K.create('textarea[name="introduction"]', {
        allowFileManager :true
      });
      
    });
  </script>
  <script>
   KindEditor.ready(function(K) {
     var upload = K.editor({
    allowFileManager : true
   });
     
     
   K('#upload').click(function() {
      upload.loadPlugin('image', function() {
        upload.plugin.imageDialog({
          imageUrl : K('#logoimage').val(),
          clickFn : function(url, title, width, height, border, align) {
            K('#img_src').val(url);
            upload.hideDialog();
          }
        });
      });
    });
  })
  </script>
        <div class="form-group" style="text-align:right;margin-right:10%">
       <div class="col-sm-offset-2 col-sm-10">
         <button type="submit" class="btn btn-info sub_data">确定修改</button>
       </div>
    </div>
    </div>
    </div>  
 </form>
 
  
 
     

</body>
</html>